/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nus.application.web.base.context;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author robin.foe
 */
public class ParameterBean {

    private static ParameterBean pm;
    @SuppressWarnings("unused")
    private static ServletContext sc;

    private ParameterBean(ServletContext servletContext) {
        sc = servletContext;
    }

    public static ParameterBean initiateParemeterBean(ServletContext servletContext) {
        if (pm == null) {
            pm = new ParameterBean(servletContext);
        }

        return pm;
    }

    public String getHtmlResource(HttpServletRequest request) {
        return getAppName(request) + "resources/";
    }

    public String getAppName(HttpServletRequest request) {
        return "";
        //return UtilityBean.getAppURL(request);
    }
}
